
public class Good{
	String gname;
	int gid;
	int gprice;

	Good(String name, int id, int price) {
		gname = name;
		gid = id;
		gprice = price;
	}

	void print() {
		System.out.println("商品名:"+gname+"序号:"+gid+"价格"+gprice);
	}
}
